package com.region.plugin.proxy;

/**
 * @author 26225
 * @date 2023/5/23 23:38
 * @desciption
 */
public class UserServiceImpl implements UserService{

    private int number;

    public UserServiceImpl() {
    }

    public UserServiceImpl(int number) {
        this.number = number;
    }

    @Override
    public int sayHello() {
        System.out.println("the user service say hello");
        return 10;
    }

    @Override
    public int hasParameter(String name) {
        System.out.println("The is hasParameter function:" + name + " and the default number:" + number);
        return 0;
    }

    @Override
    public String sayHelloWithThrowable() {
        this.sayHello();
        int i =1/0;
        return "10";
    }
}
